<%@page import="com.jspsmart.upload.SmartUpload"%>
<%@page import="com.is.util.ParamUtil"%>
<%@page import="com.is.export.control.ExportOneClassDetail"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>



    <%
    response.reset(); //避免getWriter() has already been called for this response
	String path = request.getRealPath("/");
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
	String fileName = System.currentTimeMillis() + ".xls";
	String realPath = path + "\\DownloadXls\\" + fileName;
	String visitPath = basePath + "/DownloadXls/" + fileName;
	int classId = ParamUtil.getInt(request, "classId",0);
	int stuyear = ParamUtil.getInt(request, "stuyear",0);
	ExportOneClassDetail.ExportOneClassAllScore(realPath, classId, stuyear);

	SmartUpload smartUpload = new SmartUpload();
	smartUpload.initialize(pageContext);
	smartUpload.setContentDisposition(null);
	smartUpload.downloadFile(realPath);
	out.clear();
 	out=pageContext.pushBody();
%>

